<div id="content">
	<h1>
		<?php echo $this->pageTitle; ?>
	</h1>
<p>
<?php 
	echo "<a href=".$this->url(array('controller' => 'salesrep', 'action' => 'add')).">Add new SalesRep<a>"; 
?>
</p>
	<div id="normaltable">
		<table>
		<thead>
			<tr>
				<th>Name</th>
				<th></th>
				<th></th>
			</tr>
		</thead>
		<tbody>
			<?php 

			foreach($this->entries as $row) {

				echo "<tr><td>".$row['salesRepName']."</td><td>";

				echo "<a href=".$this->url(array(
						'id'	=> $row['id'],
						'controller' => 'salesrep',
						'action'     => 'edit')).">edit<a></td><td>";

				echo "<a href=".$this->url(array(
						'id'	=> $row['id'],
						'controller' => 'salesrep',
						'action'     => 'delete')).">delete<a></td></tr>";
			}

			?>
		</tbody>
	</table>
	</div>
</div>